<?php
/* @var $this AdsController */
/* @var $model Ads */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'ads-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_title'); ?>
		<?php echo $form->textField($model,'ads_title',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'ads_title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_desc'); ?>
		<?php echo $form->textArea($model,'ads_desc',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'ads_desc'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_image'); ?>
		<?php echo $form->textField($model,'ads_image',array('size'=>60,'maxlength'=>120)); ?>
		<?php echo $form->error($model,'ads_image'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_url'); ?>
		<?php echo $form->textField($model,'ads_url',array('size'=>60,'maxlength'=>360)); ?>
		<?php echo $form->error($model,'ads_url'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_begindate'); ?>
		<?php echo $form->textField($model,'ads_begindate'); ?>
		<?php echo $form->error($model,'ads_begindate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'duration'); ?>
		<?php echo $form->textField($model,'duration'); ?>
		<?php echo $form->error($model,'duration'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_website'); ?>
		<?php echo $form->textField($model,'ads_website',array('size'=>60,'maxlength'=>120)); ?>
		<?php echo $form->error($model,'ads_website'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_customer_name'); ?>
		<?php echo $form->textField($model,'ads_customer_name',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'ads_customer_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_phone'); ?>
		<?php echo $form->textField($model,'ads_phone',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'ads_phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_order'); ?>
		<?php echo $form->textField($model,'ads_order'); ?>
		<?php echo $form->error($model,'ads_order'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_position'); ?>
		<?php echo $form->textField($model,'ads_position'); ?>
		<?php echo $form->error($model,'ads_position'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ads_page'); ?>
		<?php echo $form->textField($model,'ads_page',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'ads_page'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->